import http from '../../utils/http';
const get=(data:any)=>{
    return http({
        url:'/getData',
        method:'post',
        data
    })
};

const add=(data:any)=>{
    return http({
        url:'/add',
        method:'post',
        data
    })
}
const del=(data:{id:number})=>{
    return http({
        url:'/delete',
        method:'delete',
        data
    })
}
const edit=(data:any)=>{
    return http({
        url:'update',
        method:'post',
        data
    })
}

export {
    get,
    add,edit,del
}